#!/usr/bin/python
# -*- coding: UTF-8 -*-
import re 



fo = open("recommendations.txt",'r')
fs = open("recommendations_new.txt",'w')


re_telephone = re.compile( r'^([0-9]{1,11})\,([0-9]{1,11})\,(([1-9]{1}\d*)|(0{1}))(\.\d{0,16})$')
for line  in  fo.readlines():
	if re_telephone.match(line):	
#    if re.search( r'^([0-9]{1,11})\,([0-9]{1,11})\,(([1-9]{1}\d*)|(0{1}))(\.\d{0,16})$' , line, re.M|re.I):
           fs.write(line)        
fo.close()
fs.close()

